# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=most
pkgver=5.2.0
pkgrel=2
pkgdesc="Powerful paging program for UNIX"
url="https://www.jedsoft.org/most/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	ncurses-dev
	ncurses-terminfo
	slang-dev
	"
subpackages="$pkgname-doc"
source="https://www.jedsoft.org/releases/most/most-$pkgver.tar.gz"
options="!check" # no tests

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

build() {
	./configure \
		--prefix=/usr \
		--host=$CHOST \
		--build=$CBUILD
	make -j1
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3aa3cb46ddd456532a009fb9cfcd746971396be33e03e52a15b754a6d7683f4efd020edb0ec4eb36d22ba20f050aaac4ba6cdd3b69bb5701ea58ddb9a903c59d  most-5.2.0.tar.gz
"
